﻿using System;
using System.Collections.Generic;
using System.IO;

namespace NavLine.Aircraft
{
	public class ACTestfile
	{
		public string ac_name;
		public List<ACTestItem> Items;
		public void Load(string fn)
		{
			string[] buf = File.ReadAllLines(fn);
			ac_name = buf[0];
			for (int i = 1; i < buf.Length; i++)
				Items.Add(ACTestItem.CreateItem(buf[i]));
		}
	}
	public class ACTestItem
	{
		public static ACTestItem CreateItem(string s)
		{
			switch (s[0])
			{
				case 'M':
					return new ACTestManeuverItem(s);
					break;
				default:
					break;
			}
			return null;
		}
		public ACTestItem(string s)
		{
			if (s != "")
			{
			}
		}
	}
	public class ACTestManeuverItem : ACTestItem
	{
		public ACTestManeuverItem(string s)
			: base("")
		{
		}
	}
}